﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DBHelper
{
    public class SysCfg
    {
        /// <summary>
        /// Cell线1主控数据库
        /// </summary>
        public static string CellLine1_ConnString => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线2主控数据库
        /// </summary>
        public static string CellLine2_ConnString => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// 艾孚数据库连接
        /// </summary>
        public static string TasksDb_ConnString => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// PlcIp
        /// </summary>
        public static string PlcIp => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Scan1StuAddr
        /// </summary>
        public static string Scan0StuAddr => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Scan1StuAddr
        /// </summary>
        public static string Scan0CtlAddr => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Scan1StuAddr
        /// </summary>
        public static string Scan1StuAddr => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Scan1StuAddr
        /// </summary>
        public static string Scan1CtlAddr => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Scan1StuAddr
        /// </summary>
        public static string Scan2StuAddr => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Scan1StuAddr
        /// </summary>
        public static string Scan2CtlAddr => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// PlcPort
        /// </summary>
        public static string PlcPort => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线1扫码枪IP
        /// </summary>
        public static string Scan1Ip => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线1扫码枪Port
        /// </summary>
        public static string Scan1Port => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线1扫码枪IP
        /// </summary>
        public static string Scan0Ip => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线1扫码枪Port
        /// </summary>
        public static string Scan0Port => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线2扫码枪IP
        /// </summary>
        public static string Scan2Ip => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线2扫码枪Port
        /// </summary>
        public static string Scan2Port => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线2扫码枪IP
        /// </summary>
        public static string InLineEnable => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线2扫码枪IP
        /// </summary>
        public static string Line1Enable => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        /// <summary>
        /// Cell线2扫码枪IP
        /// </summary>
        public static string Line2Enable => ConfigurationUtil.GetConfiguration(Convert.ToString, () => "");
        public static bool SetConfiguration(string key, object val)
        {
            return ConfigurationUtil.SetConfiguration(key, val.ToString());
        }


    }
}
